const express = require('express')
const router = express.Router()

const {addPublished,getCommnetByName,getComments,getCommnetById,updateById,delCommnet} = require('../router_handler/published')

router.put('/published',addPublished)
router.get('/publishedByName',getCommnetByName)
router.get('/published',getComments)
router.get('/published/:id',getCommnetById)
router.put('/publishedId',updateById)
router.delete('/published/:id',delCommnet)

module.exports = router